package com.tiger.cmpeb.sample2;

import java.rmi.RemoteException;

import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.RemoveException;

public abstract class CustomerBean02 implements EntityBean {

	private static final long serialVersionUID = 1L;

	private EntityContext entityContext = null;

	public abstract Integer getCustomerID();

	public abstract void setCustomerID(Integer customerID);

	public abstract String getName();

	public abstract void setName(String name);

	public abstract void setAddress(Address01 address);

	public abstract Address01 getAddress();

	public Integer ejbCreate(Integer customerID, String name, Address01 address) throws CreateException {
		setCustomerID(customerID);
		setName(name);
		setAddress(address);
		return customerID;

	}

	public void ejbPostCreate(Integer customerID, String name, Address01 address) {

	}

	public void setEntityContext(EntityContext entityContext) throws EJBException, RemoteException {
		this.entityContext = entityContext;

	}

	public void unsetEntityContext() throws EJBException, RemoteException {
		this.entityContext = null;

	}

	public void ejbStore() throws EJBException, RemoteException {
	}

	public void ejbActivate() throws EJBException, RemoteException {
	}

	public void ejbPassivate() throws EJBException, RemoteException {
	}

	public void ejbLoad() throws EJBException, RemoteException {
	}

	public void ejbRemove() throws RemoveException, EJBException, RemoteException {
	}

}
